<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>图书列表（Thymeleaf）</title>
</head>
<body>
<h1>图书列表</h1>
<table>
    <tr>
        <th>ID</th>
        <th>书名</th>
        <th>作者</th>
    </tr>
    <tr th:each="book : ${books}">
        <td th:text="${book.id}"></td>
        <td th:text="${book.name}"></td>
        <td th:text="${book.author}"></td>
    </tr>
</table>
</body>
</html>